using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Microblaze.Simulator.Components.Microblaze.Instructions
{
    public class ErrorInstruction : Instruction
    {
        public override int CycleCount
        {
            get { throw new NotSupportedException(); }
        }

        public ErrorInstruction()
            : base("error")
        {
        }

        public override void Execute(MicroblazeComponent MicroblazeComponent)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override string ToString()
        {
            return "ERROR: " + GetAsBinaryString();
        }
    }
}
